//package com.zmn.plat.dubbo.impl.warranty;
//
//import java.util.List;
//
//import javax.annotation.Resource;
//
//import org.apache.dubbo.config.annotation.Service;
//
//import com.zmn.common.constant.GlobalConsts;
//import com.zmn.common.dto2.ResponseDTO;
//import com.zmn.manager.common.database.annotation.ReadOnlyConnection;
//import com.zmn.plat.business.interfaces.warranty.info.WarrantyInfoBService;
//import com.zmn.plat.common.dto.warranty.WarrantyInfoDRO;
//import com.zmn.plat.common.exception.PlatException;
//import com.zmn.plat.dubbo.interfaces.warranty.WarrantyInfoRemoteService;
//import com.zmn.plat.dubbo.utils.DubboConsts;
//
//import lombok.extern.slf4j.Slf4j;
//
///**
// * 保修卡dubbo-service
// *
// * @author tanghongjun
// * @version v1.0
// * @since 2020年6月16日14:10:35
// */
//@Service(version = DubboConsts.INTERFACE_VERSION, validation = "true")
//@Slf4j
//public class WarrantyInfoRemoteServiceImpl implements WarrantyInfoRemoteService {
//
//    @Resource
//    WarrantyInfoBService warrantyInfoBService;
//
//    @Override
//    @ReadOnlyConnection
//    // @Cacheable(cacheNames = "redis1h", key = "'plat:dubbo:list:warranty:dro:plat:'+#p0+':product:'+#p1+':item:'+#p2")
//    public ResponseDTO<WarrantyInfoDRO> listWarrantyInfoByBizTypeAndProductIdAndItemIdAndTariffId(Integer bizType, Integer productId, List<Integer> itemIds, Integer traiffId) {
//        log.info("listWarrantyInfoByBizTypeAndProductIdAndItemIdAndTariffId 参数为：bizType={}，productId={}，itemIds={}，traiffId={}", bizType, productId, itemIds, traiffId);
//        try {
//            WarrantyInfoDRO dro = warrantyInfoBService.listWarrantyInfoByBizTypeAndProductIdAndItemIdAndTariffId(bizType, productId, itemIds, traiffId);
//            return ResponseDTO.success(dro);
//        } catch (PlatException e) {
//            return ResponseDTO.fromErrorCodeTable(e.getErrorCode());
//        } catch (Exception e) {
//            log.error("listWarrantyInfoByBizTypeAndProductIdAndItemIdAndTariffId error,bizType={}，productId={}，itemIds={}，traiffId={}", bizType, productId, itemIds, traiffId, e);
//            return ResponseDTO.fail(GlobalConsts.FAILD_MSG);
//        }
//
//    }
//
//}
